package java_012_zuoye06;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class java06 {
	public static void main(String[] args) {

		int[] arr1={1,2,3};
		int[] arr2={3,4,5,2};
	
		
		List<Integer> list = Arrays.stream(arr1).boxed()
				.collect(Collectors.toCollection(ArrayList::new));
		list.addAll(Arrays.stream(arr2).boxed()
                .collect(Collectors.toList()));
		list.stream().distinct().forEach(s->System.out.print(s));
		
		
		
		
	}
}
